package spring.spring_blog.server;

import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import spring.spring_blog.pojo.model.blogInfo;
import spring.spring_blog.pojo.model.userInfo;
import spring.spring_blog.pojo.request.addBlogReq;
import spring.spring_blog.pojo.request.registerReq;
import spring.spring_blog.pojo.request.updateBlogReq;
import spring.spring_blog.pojo.response.blogListInfoResp;
import spring.spring_blog.pojo.response.response;
import spring.spring_blog.pojo.response.userInfoResp;

import java.util.List;

public interface BlogServer {
    boolean deleteBlog(int blogId);

    userInfo login(String username, String password);

    List<blogListInfoResp> getAllBlogInfo(int id);

    List<blogListInfoResp> getAllBlog();

    blogInfo getBlogInfoDetail(int id);

    userInfoResp getUserInfo(Integer userId);

    response addBlog(addBlogReq l);

    response updateBlog(updateBlogReq updateReq);

    response register(registerReq l);

}
